how to write yaml file